package mypack;

public class Tool
{
	public static int add(String x, String y)
	{
		int a = 0;
		int b = 0;
		try
		{
			a = Integer.parseInt(x);
			b = Integer.parseInt(y);
		}
		catch (Exception e)
		{
		}

		return a + b;
	}

	public static String convert(String s, String encode1, String encode2)
	{
		try
		{
			return new String(s.getBytes(encode1), encode2);
		}
		catch (Exception e)
		{
			return null;
		}
	}
}
